﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{


    public partial class qgzx_student_information
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_student_information ToPOCO()
        {
            qgzx_student_information poco = new qgzx_student_information()
            {
                StudentId = this.StudentId,
                StudentNum = this.StudentNum,
                password = this.password,
                StudentName = this.StudentName,
                Gender = this.Gender,
                College = this.College,
                Profession = this.Profession,
                Degree = this.Degree,
                EducationYear = this.EducationYear,
                Disclipline = this.Disclipline,
                Grade = this.Grade,
                Class = this.Class,
                Instructor = this.Instructor,
                InstructorPhone = this.InstructorPhone,
                Nation = this.Nation,
                PoliticStatus = this.PoliticStatus,
                StudentSource = this.StudentSource,
                IdCard = this.IdCard,
                BankCard = this.BankCard,
                SchoolCard = this.SchoolCard,
                Telephone = this.Telephone,
                ShortPhone = this.ShortPhone,
                Email = this.Email,
                QQ = this.QQ,
                Dormitory = this.Dormitory,
                Height = this.Height,
                Age = this.Age,
                Interest = this.Interest,
                RemarkDetail = this.RemarkDetail
            };
            return poco;
        }
        #endregion


        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Student_information ToViewModel()
        {
            ViewModel.Student_information poco = new ViewModel.Student_information()
            {
                StudentId = this.StudentId,
                StudentNum = this.StudentNum,
                password = this.password,
                StudentName = this.StudentName,
                Gender = this.Gender,
                College = this.College,
                Profession = this.Profession,
                Degree = this.Degree,
                EducationYear = this.EducationYear,
                Disclipline = this.Disclipline,
                Grade = this.Grade,
                Class = this.Class,
                Instructor = this.Instructor,
                InstructorPhone = this.InstructorPhone,
                Nation = this.Nation,
                PoliticStatus = this.PoliticStatus,
                StudentSource = this.StudentSource,
                IdCard = this.IdCard,
                BankCard = this.BankCard,
                SchoolCard = this.SchoolCard,
                Telephone = this.Telephone,
                ShortPhone = this.ShortPhone,
                Email = this.Email,
                QQ = this.QQ,
                Dormitory = this.Dormitory,
                Height = this.Height,
                Age = this.Age,
                Interest = this.Interest,
                RemarkDetail = this.RemarkDetail
            };
            return poco;
        }
        #endregion
    }
}
